package com.china.juju.entity;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="juju_support_apply"
    ,catalog="zutuan_prot"
)
public class JujuSupportApply  implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    public static final String ENTITY_NAME = "com.china.juju.entity.JujuSupportApply";
	public static final String TABLE_NAME="juju_support_apply";

    public static final String PK_Field = "id"; 
    public static final String PK_Method = "getId";  
	
	public static final String P_id = "id"; 
	public static final String P_actid = "actid"; 
	public static final String P_actname = "actname"; 
	public static final String P_organid = "organid"; 
	public static final String P_userid = "userid"; 
	public static final String P_supporttype = "supporttype"; 
	public static final String P_supportdetail = "supportdetail"; 
	public static final String P_actadress = "actadress"; 
	public static final String P_actenddate = "actenddate"; 
	public static final String P_actstartdate = "actstartdate"; 
	public static final String P_description = "description"; 
	public static final String P_plan = "plan"; 
	public static final String P_applydate = "applydate"; 
	public static final String P_supportdate = "supportdate"; 
	public static final String P_status = "status"; 
	public static final String P_amount = "amount"; 
	public static final String P_acttype = "acttype"; 
	public static final String P_contact = "contact"; 
	public static final String P_contactdetail = "contactdetail"; 
	public static final String P_approvemark = "approvemark"; 

     private String id;
     private String actid;
     private String actname;
     private String organid;
     private String userid;
     private Integer supporttype;
     private String supportdetail;
     private String actadress;
     private Date actenddate;
     private Date actstartdate;
     private String description;
     private String plan;
     private Date applydate;
     private Date supportdate;
     private Integer status;
     private String amount;
     private Integer acttype;
     private String contact;
     private String contactdetail;
     private String approvemark;

    public JujuSupportApply() {
    }
	
    public JujuSupportApply(String id, String actid, String organid) {
        this.id = id;
        this.actid = actid;
        this.organid = organid;
    }
    public JujuSupportApply(String id, String actid, String actname, String organid, String userid, Integer supporttype, String supportdetail, String actadress, Date actenddate, Date actstartdate, String description, String plan, Date applydate, Date supportdate, Integer status, String amount, Integer acttype, String contact, String contactdetail, String approvemark) {
        this.id = id;
        this.actid = actid;
        this.actname = actname;
        this.organid = organid;
        this.userid = userid;
        this.supporttype = supporttype;
        this.supportdetail = supportdetail;
        this.actadress = actadress;
        this.actenddate = actenddate;
        this.actstartdate = actstartdate;
        this.description = description;
        this.plan = plan;
        this.applydate = applydate;
        this.supportdate = supportdate;
        this.status = status;
        this.amount = amount;
        this.acttype = acttype;
        this.contact = contact;
        this.contactdetail = contactdetail;
        this.approvemark = approvemark;
    }
   
    @Id 
    @GeneratedValue( generator="paymentableGenerator")  
    @GenericGenerator(name="paymentableGenerator", strategy="uuid")  
    
    @Column(name="ID", unique=true, nullable=false, length=36)
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="actid", nullable=false, length=36)
    public String getActid() {
        return this.actid;
    }
    
    public void setActid(String actid) {
        this.actid = actid;
    }
    
    @Column(name="actname", length=100)
    public String getActname() {
        return this.actname;
    }
    
    public void setActname(String actname) {
        this.actname = actname;
    }
    
    @Column(name="organid", nullable=false, length=36)
    public String getOrganid() {
        return this.organid;
    }
    
    public void setOrganid(String organid) {
        this.organid = organid;
    }
    
    @Column(name="userid", length=36)
    public String getUserid() {
        return this.userid;
    }
    
    public void setUserid(String userid) {
        this.userid = userid;
    }
    
    @Column(name="supporttype")
    public Integer getSupporttype() {
        return this.supporttype;
    }
    
    public void setSupporttype(Integer supporttype) {
        this.supporttype = supporttype;
    }
    
    @Column(name="supportdetail", length=36)
    public String getSupportdetail() {
        return this.supportdetail;
    }
    
    public void setSupportdetail(String supportdetail) {
        this.supportdetail = supportdetail;
    }
    
    @Column(name="actadress", length=512)
    public String getActadress() {
        return this.actadress;
    }
    
    public void setActadress(String actadress) {
        this.actadress = actadress;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="actenddate", length=19)
    public Date getActenddate() {
        return this.actenddate;
    }
    
    public void setActenddate(Date actenddate) {
        this.actenddate = actenddate;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="actstartdate", length=19)
    public Date getActstartdate() {
        return this.actstartdate;
    }
    
    public void setActstartdate(Date actstartdate) {
        this.actstartdate = actstartdate;
    }
    
    @Column(name="description", length=65535)
    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    @Column(name="plan", length=100)
    public String getPlan() {
        return this.plan;
    }
    
    public void setPlan(String plan) {
        this.plan = plan;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="applydate", length=19)
    public Date getApplydate() {
        return this.applydate;
    }
    
    public void setApplydate(Date applydate) {
        this.applydate = applydate;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="supportdate", length=19)
    public Date getSupportdate() {
        return this.supportdate;
    }
    
    public void setSupportdate(Date supportdate) {
        this.supportdate = supportdate;
    }
    
    @Column(name="status")
    public Integer getStatus() {
        return this.status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    @Column(name="amount", length=20)
    public String getAmount() {
        return this.amount;
    }
    
    public void setAmount(String amount) {
        this.amount = amount;
    }
    
    @Column(name="acttype")
    public Integer getActtype() {
        return this.acttype;
    }
    
    public void setActtype(Integer acttype) {
        this.acttype = acttype;
    }
    
    @Column(name="contact", length=100)
    public String getContact() {
        return this.contact;
    }
    
    public void setContact(String contact) {
        this.contact = contact;
    }
    
    @Column(name="contactdetail", length=256)
    public String getContactdetail() {
        return this.contactdetail;
    }
    
    public void setContactdetail(String contactdetail) {
        this.contactdetail = contactdetail;
    }
    
    @Column(name="approvemark", length=2048)
    public String getApprovemark() {
        return this.approvemark;
    }
    
    public void setApprovemark(String approvemark) {
        this.approvemark = approvemark;
    }



    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}


